<?php
include("../../config/connect.php");
#include("../../public/common.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <style type="text/css">
 /*伪类事件*/
a:link{color:#777;text-decoration:none;outline:none;cursor:pointer;}
a:visited{color:#777;text-decoration:none;}
a:hover{color:#2287B3;text-decoration:underline;}
a:active{color:#777;text-decoration:none;}﻿
 p { overflow:hidden; margin:0; padding:0; line-height:20px; width:290px;}
 .time,.item { float:left;line-height:20px;}
 .fee,.comm { float:right;line-height:20px;}
 .pop { clear:both; padding-bottom:4px; overflow:hidden; line-height:20px; border-bottom:1px dotted #CCCCCC;}
 .item {width:220px; overflow:hidden; height:20px;}
 .item a { color:#777; text-decoration:none;}
 .lan { color:#2287B3;}
 </style>
</head>
<body style="margin:0;padding:0; font-size:12px; color:#777; background-color:transparent;">
<div id="shaidan" style="margin:0;padding:0;">
<?PHP 
$sql = "select pay_time,real_pay_fee,num_iid,item_title,commission from report_items order by pay_time desc limit 20";
$result = mysql_query( $sql );
while( $result && $row = mysql_fetch_assoc( $result ))
{
?>
<p style="padding-top:2px"><span class="time" style="color:#2287B3;"><?PHP echo $row["pay_time"]; ?></span><span class="fee" style="color:#ff6600;">售价<?PHP echo $row["real_pay_fee"]; ?>元</span></p><p class="pop"><span class="item"><a href="http://item.taobao.com/item.htm?id=<?PHP echo $row["num_iid"]; ?>" target="_blank" title="<?PHP echo $row["item_title"]; ?>"><?PHP echo $row["item_title"]; ?></a></span><span class="comm" style="color:#ff6600;">返<span ><?PHP echo round($row["commission"] * 0.6, 2); ?></span>元</span></p>
<?PHP } ?>

</div>
</body>
</html>
<script>
var t=setInterval(myfunc,1000)
var d=document.getElementById("shaidan")
function myfunc(){
var o=d.firstChild
d.removeChild(o)
d.appendChild(o)
}
d.onmouseover=function(){clearInterval(t)}
d.onmouseout=function(){t=setInterval(myfunc,1000)}
</script>

